﻿@model SoftHotel.Models.Cliente

@{
    ViewBag.Title = "Edit";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <h1><strong>Editar Cliente</strong></h1>
    <br />
    <table id="MainContent_Table1" rules="none" style="border-color: Black; width: 900px; margin-bottom: 0px;"> 
            @Html.HiddenFor(model => model.idCliente)
            @Html.HiddenFor(model => model.estado)
            <tr id = "nomb">
		        <td style="width: 20px;"></td>
		        <td style="font-weight: bold; width: 220px;">@Html.LabelFor(model => model.nombres) </td>
		        <td style="width: 220px;">
                    @Html.EditorFor(model => model.nombres)
                    @Html.ValidationMessageFor(model => model.nombres)
                </td>
		        <td></td> 
		        <td style="font-weight: bold; width: 220px;">@Html.LabelFor(model => model.apellidoPaterno)</td>
		        <td style="width: 194px;">
                    @Html.EditorFor(model => model.apellidoPaterno)
                    @Html.ValidationMessageFor(model => model.apellidoPaterno)
                </td>
	        </tr>      
            <tr id = apMat>
		        <td style="width: 20px;"></td>
		        <td style="font-weight: bold; width: 220px;">@Html.LabelFor(model => model.apellidoMaterno) </td>
		        <td style="width: 220px;">
                    @Html.EditorFor(model => model.apellidoMaterno)
                    @Html.ValidationMessageFor(model => model.apellidoMaterno)
                    @*@Html.TextBoxFor(model => model.apellidoMaterno, new { @class = "required", id = "txtApMat" })
                    @Html.ValidationMessageFor(model => model.apellidoMaterno)*@
                </td>
		        <td></td> 
		        <td style="font-weight: bold; width: 220px;">@Html.LabelFor(model => model.email)</td>
		        <td style="width: 194px;">
                    @Html.EditorFor(model => model.email)
                    @Html.ValidationMessageFor(model => model.email)
                </td>
	        </tr>      
            <tr id = "Rs">
		        <td style="width: 20px;"></td>
		        <td style="font-weight: bold; width: 220px;">@Html.LabelFor(model => model.tipoDoc)</td>
		        <td style="width: 220px;">
                    @Html.DropDownList("tipoDoc")
                    @Html.ValidationMessageFor(model => model.tipoDoc)
                </td>
		        <td></td> 
		        <td style="font-weight: bold; width: 220px;">@Html.LabelFor(model => model.numDoc)</td>
		        <td style="width: 220px;">
                    @Html.EditorFor(model => model.numDoc)
                    @Html.ValidationMessageFor(model => model.numDoc)
                </td>
	        </tr>   
               
    </table>
        
        <p>
            <input type="submit" value="Guardar" />
        </p>
    
}

<div>
    @Html.ActionLink("Regresar", "Index")
</div>
